<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改注册人信息</title>
</head>
<body>
<form action="/updateInvest" method="post" >
	<input type="hidden" name="id" value=${id}>
	<div>
		<p>
			<span>计划名称：</span><input type="text" value="${investInfo.name }" name="name" />
		</p>
		<p>
			<span>投资金额：</span><input type="text" value="${investInfo.amount }" name="amount" />
		</p>
		<p>
			<span>项目经理：</span><input type="text" value="${investInfo.manager }" name="manager" />
		</p>
		<p>
			<span>投资说明：</span><input type="text" value="${investInfo.content }" name="content" />
		</p>
		<p>
			<span>部门名称：</span> <select name="deptId">
				<c:forEach items="${depts}" var="c">
					<option value="${c.id}" <c:if test="${c.name == investInfo.deptName}">selected</c:if>>${c.name }</option>
				</c:forEach>
			</select>
		</p>
		
		<button type="submit">保存</button>
	</div>
</form>
</body>

</html>